import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

export const contractManageRouter = {
  name: 'contractManage',
  component: () => import('@/components/MenuPage/MenuPage.vue'),
  path: 'contractManage',
  meta: {
    title: t('router.purchase.contractManage'),
    alwaysShow: true
  },
  children: [
    {
      path: '/PurchaseContract',
      component: () => import('@/views/SupplyChain/Purchase/ContractManage/PurchaseContract.vue'),
      name: 'PurchaseContract',
      meta: {
        title: t('router.purchase.purchaseContract')
      }
    },
    {
      path: '/PurchaseContractList',
      component: () =>
        import('@/views/SupplyChain/Purchase/ContractManage/PurchaseContractList.vue'),
      name: 'PurchaseContractList',
      meta: {
        title: t('router.purchase.purchaseContractList')
      }
    },
    {
      path: '/PurchaseContractChangeList',
      component: () =>
        import('@/views/SupplyChain/Purchase/ContractManage/PurchaseContractChangeList.vue'),
      name: 'PurchaseContractChangeList',
      meta: {
        title: t('router.purchase.purchaseContractChangeList')
      }
    }
  ]
}
